
angular.module('myApp')
.controller('DropdownCtrl', ['$scope', function($scope) {
  $scope.menuItems = [
    { label: '编辑112222', value: 1 },
    { label: '删除223123', value: 2, disabled: true },
    { label: '分享12312312', value: 3 }
  ];

  $scope.handleSelect = function(item) {
    console.log('选中项:', item);
  };
}])
.directive('elDropdown', ['$timeout', elDropdown]);